<!doctype html>
<html class="no-js" lang="zh-CN">
  <head><meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <meta name="color-scheme" content="light dark"><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<link rel="index" title="索引" href="genindex.html" /><link rel="search" title="搜索" href="search.html" /><link rel="next" title="Chapter 1 启航 Getting Started" href="chapter_1-Getting_Started.html" /><link rel="prev" title="sphinx-design" href="index.html" />

    <!-- Generated with Sphinx 5.3.0 and Furo 2023.03.27 -->
        <title>Chapter 0 安装 Installation - 聪明办法学 Python</title>
      <link rel="stylesheet" type="text/css" href="_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="_static/styles/furo.css?digest=fad236701ea90a88636c2a8c73b44ae642ed2a53" />
    <link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
    <link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
    <link rel="stylesheet" type="text/css" href="_static/togglebutton.css" />
    <link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />
    <link rel="stylesheet" type="text/css" href="_static/styles/furo-extensions.css?digest=30d1aed668e5c3a91c3e3bf6a60b675221979f0e" />
    
    


<style>
  body {
    --color-code-background: #f8f8f8;
  --color-code-foreground: black;
  
  }
  @media not print {
    body[data-theme="dark"] {
      --color-code-background: #202020;
  --color-code-foreground: #d0d0d0;
  
    }
    @media (prefers-color-scheme: dark) {
      body:not([data-theme="light"]) {
        --color-code-background: #202020;
  --color-code-foreground: #d0d0d0;
  
      }
    }
  }
</style></head>
  <body>
    
    <script>
      document.body.dataset.theme = localStorage.getItem("theme") || "auto";
    </script>
    

<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
  <symbol id="svg-toc" viewBox="0 0 24 24">
    <title>Contents</title>
    <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024">
      <path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z"/>
    </svg>
  </symbol>
  <symbol id="svg-menu" viewBox="0 0 24 24">
    <title>Menu</title>
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
      stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-menu">
      <line x1="3" y1="12" x2="21" y2="12"></line>
      <line x1="3" y1="6" x2="21" y2="6"></line>
      <line x1="3" y1="18" x2="21" y2="18"></line>
    </svg>
  </symbol>
  <symbol id="svg-arrow-right" viewBox="0 0 24 24">
    <title>Expand</title>
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
      stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather-chevron-right">
      <polyline points="9 18 15 12 9 6"></polyline>
    </svg>
  </symbol>
  <symbol id="svg-sun" viewBox="0 0 24 24">
    <title>Light mode</title>
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
      stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather-sun">
      <circle cx="12" cy="12" r="5"></circle>
      <line x1="12" y1="1" x2="12" y2="3"></line>
      <line x1="12" y1="21" x2="12" y2="23"></line>
      <line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
      <line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
      <line x1="1" y1="12" x2="3" y2="12"></line>
      <line x1="21" y1="12" x2="23" y2="12"></line>
      <line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
      <line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
    </svg>
  </symbol>
  <symbol id="svg-moon" viewBox="0 0 24 24">
    <title>Dark mode</title>
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
      stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon-tabler-moon">
      <path stroke="none" d="M0 0h24v24H0z" fill="none" />
      <path d="M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z" />
    </svg>
  </symbol>
  <symbol id="svg-sun-half" viewBox="0 0 24 24">
    <title>Auto light/dark mode</title>
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
      stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="icon-tabler-shadow">
      <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
      <circle cx="12" cy="12" r="9" />
      <path d="M13 12h5" />
      <path d="M13 15h4" />
      <path d="M13 18h1" />
      <path d="M13 9h4" />
      <path d="M13 6h1" />
    </svg>
  </symbol>
</svg>

<input type="checkbox" class="sidebar-toggle" name="__navigation" id="__navigation">
<input type="checkbox" class="sidebar-toggle" name="__toc" id="__toc">
<label class="overlay sidebar-overlay" for="__navigation">
  <div class="visually-hidden">Hide navigation sidebar</div>
</label>
<label class="overlay toc-overlay" for="__toc">
  <div class="visually-hidden">Hide table of contents sidebar</div>
</label>

<div class="announcement">
  <aside class="announcement-content">
     聪明办法学 Python 在线文档 Beta 测试 
  </aside>
</div>

<div class="page">
  <header class="mobile-header">
    <div class="header-left">
      <label class="nav-overlay-icon" for="__navigation">
        <div class="visually-hidden">Toggle site navigation sidebar</div>
        <i class="icon"><svg><use href="#svg-menu"></use></svg></i>
      </label>
    </div>
    <div class="header-center">
      <a href="index.html"><div class="brand"><div align=center><small>聪明办法学 Python</small></div></div></a>
    </div>
    <div class="header-right">
      <div class="theme-toggle-container theme-toggle-header">
        <button class="theme-toggle">
          <div class="visually-hidden">Toggle Light / Dark / Auto color theme</div>
          <svg class="theme-icon-when-auto"><use href="#svg-sun-half"></use></svg>
          <svg class="theme-icon-when-dark"><use href="#svg-moon"></use></svg>
          <svg class="theme-icon-when-light"><use href="#svg-sun"></use></svg>
        </button>
      </div>
      <label class="toc-overlay-icon toc-header-icon" for="__toc">
        <div class="visually-hidden">Toggle table of contents sidebar</div>
        <i class="icon"><svg><use href="#svg-toc"></use></svg></i>
      </label>
    </div>
  </header>
  <aside class="sidebar-drawer">
    <div class="sidebar-container">
      
      <div class="sidebar-sticky"><a class="sidebar-brand centered" href="index.html">
  
  <div class="sidebar-logo-container">
    <img class="sidebar-logo" src="_static/datawhale_logo.png" alt="Logo"/>
  </div>
  
  <span class="sidebar-brand-text"><div align=center><small>聪明办法学 Python</small></div></span>
  
</a><form class="sidebar-search-container" method="get" action="search.html" role="search">
  <input class="sidebar-search" placeholder="搜索" name="q" aria-label="搜索">
  <input type="hidden" name="check_keywords" value="yes">
  <input type="hidden" name="area" value="default">
</form>
<div id="searchbox"></div><div class="sidebar-scroll"><div class="sidebar-tree">
  <p class="caption" role="heading"><span class="caption-text">目录</span></p>
<ul class="current">
<li class="toctree-l1 current current-page"><a class="current reference internal" href="#">Chapter 0 安装 Installation</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="chapter_1-Getting_Started.html">Chapter 1 启航 Getting Started</a></li>
</ul>

</div>
</div>

      </div>
      
    </div>
  </aside>
  <div class="main">
    <div class="content">
      <div class="article-container">
        <a href="#" class="back-to-top muted-link">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
            <path d="M13 20h-2V8l-5.5 5.5-1.42-1.42L12 4.16l7.92 7.92-1.42 1.42L13 8v12z"></path>
          </svg>
          <span>Back to top</span>
        </a>
        <div class="content-icon-container">
          <div class="edit-this-page">
  <a class="muted-link" href="https://github.com/anine09/p2s-book/edit/main/docs/chapter_0-Installation.ipynb" title="Edit this page">
    <svg aria-hidden="true" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
      <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
      <path d="M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4" />
      <line x1="13.5" y1="6.5" x2="17.5" y2="10.5" />
    </svg>
    <span class="visually-hidden">Edit this page</span>
  </a>
</div><div class="theme-toggle-container theme-toggle-content">
            <button class="theme-toggle">
              <div class="visually-hidden">Toggle Light / Dark / Auto color theme</div>
              <svg class="theme-icon-when-auto"><use href="#svg-sun-half"></use></svg>
              <svg class="theme-icon-when-dark"><use href="#svg-moon"></use></svg>
              <svg class="theme-icon-when-light"><use href="#svg-sun"></use></svg>
            </button>
          </div>
          <label class="toc-overlay-icon toc-content-icon" for="__toc">
            <div class="visually-hidden">Toggle table of contents sidebar</div>
            <i class="icon"><svg><use href="#svg-toc"></use></svg></i>
          </label>
        </div>
        <article role="main">
          <section class="tex2jax_ignore mathjax_ignore" id="chapter-0-installation">
<h1>Chapter 0 安装 Installation<a class="headerlink" href="#chapter-0-installation" title="此标题的永久链接">#</a></h1>
<section id="id1">
<h2>安装清单<a class="headerlink" href="#id1" title="此标题的永久链接">#</a></h2>
<ul class="simple">
<li><p>Miniconda: https://docs.conda.io/en/latest/miniconda.html</p></li>
<li><p>Visual Studio Code: https://code.visualstudio.com/</p></li>
</ul>
</section>
<section id="miniconda">
<h2>Miniconda 安装配置<a class="headerlink" href="#miniconda" title="此标题的永久链接">#</a></h2>
<section id="id2">
<h3>下载 Miniconda<a class="headerlink" href="#id2" title="此标题的永久链接">#</a></h3>
<p>Miniconda 下载地址：<a class="reference external" href="https://docs.conda.io/en/latest/miniconda.html">https://docs.conda.io/en/latest/miniconda.html</a></p>
<p>最新版 Miniconda For Windows 下载链接：</p>
<p><a class="reference external" href="https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe">https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe</a></p>
</section>
<section id="windows">
<h3>Windows 下安装配置推荐<a class="headerlink" href="#windows" title="此标题的永久链接">#</a></h3>
<ul class="simple">
<li><p>Just Me (recommended)</p></li>
<li><p>Clear the package cache upon completion</p></li>
</ul>
<p><img alt="" src="_images/miniconda_installation_1.png" /></p>
<p><img alt="" src="_images/miniconda_installation_2.png" /></p>
</section>
</section>
<section id="powershell">
<h2>修改 Powershell 执行策略（可选）<a class="headerlink" href="#powershell" title="此标题的永久链接">#</a></h2>
<p>在<code class="docutils literal notranslate"><span class="pre">开始</span></code>图标<strong>右键单击</strong>，选择 <code class="docutils literal notranslate"><span class="pre">Windows</span> <span class="pre">PowerShell（管理员）</span></code></p>
<p>先输入下面的内容，并回车：</p>
<div class="highlight-powershell notranslate"><div class="highlight"><pre><span></span><span class="nb">Set-ExecutionPolicy</span> <span class="n">-Scope</span> <span class="n">CurrentUser</span> <span class="n">RemoteSigned</span>
</pre></div>
</div>
<p>出现如下内容后，输入：<code class="docutils literal notranslate"><span class="pre">A</span></code>，回车：</p>
<p><img alt="" src="../resources/slides/chap0/pic/powershell.png" /></p>
<p>最后在 <strong>Anaconda Powershell Prompt</strong> 中输入：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>init
</pre></div>
</div>
</section>
<section id="id3">
<h2>更换镜像源<a class="headerlink" href="#id3" title="此标题的永久链接">#</a></h2>
<ul class="simple">
<li><p>Pip 换源</p></li>
<li><p>Conda 换源</p></li>
</ul>
<blockquote>
<div><p>加快国内资源下载速度</p>
</div></blockquote>
<section id="id4">
<h3>校园网联合镜像站<a class="headerlink" href="#id4" title="此标题的永久链接">#</a></h3>
<p><a class="reference external" href="https://help.mirrors.cernet.edu.cn/">https://help.mirrors.cernet.edu.cn/</a></p>
</section>
<section id="id5">
<h3>阿里巴巴开源镜像站<a class="headerlink" href="#id5" title="此标题的永久链接">#</a></h3>
<p><a class="reference external" href="https://developer.aliyun.com/mirror/">https://developer.aliyun.com/mirror/</a></p>
<p>请避免使用代理，不合理的代理设置会导致下载失败</p>
</section>
<section id="conda">
<h3>Conda 更换镜像源<a class="headerlink" href="#conda" title="此标题的永久链接">#</a></h3>
<p>清华大学开源软件镜像站：<a class="reference external" href="https://help.mirrors.cernet.edu.cn/anaconda/">https://help.mirrors.cernet.edu.cn/anaconda/</a></p>
<p>南方科技大学开源软件镜像站：<a class="reference external" href="https://help.mirrors.cernet.edu.cn/anaconda-extra/">https://help.mirrors.cernet.edu.cn/anaconda-extra/</a></p>
<p>在 <strong>Anaconda Powershell Prompt</strong> 中输入：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>config<span class="w"> </span>--set<span class="w"> </span>show_channel_urls<span class="w"> </span>yes
</pre></div>
</div>
<p>在镜像站复制文本后，在 <strong>Anaconda Powershell Prompt</strong> 中输入：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>notepad<span class="w"> </span>.condarc<span class="w"> </span><span class="c1"># 注意有个小点 &quot;.&quot; 在 &quot;condarc&quot; 的前面</span>
</pre></div>
</div>
<p>粘贴刚刚复制的文本，保存文件后关闭</p>
<p>最后在 <strong>Anaconda Powershell Prompt</strong> 中输入：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>clean<span class="w"> </span>-i<span class="w"> </span><span class="c1"># 清除源缓存，以启用镜像源</span>
</pre></div>
</div>
</section>
</section>
<section id="pypi">
<h2>PyPI 更换镜像源<a class="headerlink" href="#pypi" title="此标题的永久链接">#</a></h2>
<p>校园网联合镜像站：<a class="reference external" href="https://help.mirrors.cernet.edu.cn/pypi/">https://help.mirrors.cernet.edu.cn/pypi/</a></p>
<p>复制文本后，在 <strong>Anaconda Powershell Prompt</strong> 中粘贴运行即可：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># 设置 PyPI 镜像源</span>
pip<span class="w"> </span>config<span class="w"> </span><span class="nb">set</span><span class="w"> </span>global.index-url<span class="w"> </span>https://mirrors.cernet.edu.cn/pypi/web/simple<span class="w"> </span>
</pre></div>
</div>
</section>
<section id="id6">
<h2>课程环境搭建<a class="headerlink" href="#id6" title="此标题的永久链接">#</a></h2>
<section id="id7">
<h3>创建与激活 Conda 环境<a class="headerlink" href="#id7" title="此标题的永久链接">#</a></h3>
<p>创建 Conda 环境</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>create<span class="w"> </span>-n<span class="w"> </span>Datawhale<span class="w"> </span><span class="nv">python</span><span class="o">=</span><span class="m">3</span>.10<span class="w"> </span><span class="c1"># conda 环境创建</span>
</pre></div>
</div>
<p>其中 <em><strong>-n</strong></em> 代表创建的环境名称，这里是 <em><strong>Datawhale</strong></em>，并指定 <em><strong>Python 版本为 3.10</strong></em></p>
<p>激活刚刚创建的 Conda 环境：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>activate<span class="w"> </span>Datawhale<span class="w"> </span><span class="c1"># 激活 Datawhale 环境，不同环境的 Python 包版本不同！</span>
</pre></div>
</div>
<p>如果需要删除某个 Conda 环境：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>deactivate<span class="w"> </span><span class="c1"># 退出该环境</span>
conda<span class="w"> </span>remove<span class="w"> </span>-n<span class="w"> </span>Datawhale<span class="w"> </span>--all<span class="w"> </span><span class="c1"># 删除整个环境</span>
</pre></div>
</div>
</section>
</section>
<section id="pip">
<h2>Pip 安装与展示<a class="headerlink" href="#pip" title="此标题的永久链接">#</a></h2>
<p>Pip 安装课程所需第三方库</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>pip<span class="w"> </span>install<span class="w"> </span>jupyter
</pre></div>
</div>
<p>在指定路径输入：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>jupyter-notebook<span class="w"> </span><span class="c1"># 会自动跳转到浏览器</span>
</pre></div>
</div>
<p>结束学习时使用：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>Ctrl<span class="w"> </span>+<span class="w"> </span>C<span class="w"> </span><span class="c1"># 关闭 Jupyter Notebook 服务</span>
</pre></div>
</div>
<section id="id8">
<h3>安装清单<a class="headerlink" href="#id8" title="此标题的永久链接">#</a></h3>
<p>数据挖掘：</p>
<ul class="simple">
<li><p>scikit-learn</p></li>
<li><p>numpy</p></li>
<li><p>pandas</p></li>
<li><p>tqdm</p></li>
<li><p>lightgbm (数据挖掘模型)</p></li>
</ul>
<p>CV：</p>
<ul class="simple">
<li><p>nibabel</p></li>
<li><p>pillow</p></li>
</ul>
</section>
<section id="id9">
<h3>Conda 安装与展示<a class="headerlink" href="#id9" title="此标题的永久链接">#</a></h3>
<p>首先在 <strong>Anaconda Powershell Prompt</strong> 中输入：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>nvidia-smi<span class="w"> </span><span class="c1"># 查看当前 GPU 支持的最高 CUDA 版本</span>
</pre></div>
</div>
<p><img alt="" src="../resources/slides/chap0/pic/CUDA_info.png" /></p>
<p><strong>Pytorch</strong> 安装： <a class="reference external" href="https://pytorch.org/get-started/locally/">https://pytorch.org/get-started/locally/</a></p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>install<span class="w"> </span>pytorch<span class="w"> </span>torchvision<span class="w"> </span>torchaudio<span class="w"> </span>pytorch-cuda<span class="o">=</span><span class="m">11</span>.8<span class="w"> </span>-c<span class="w"> </span>pytorch<span class="w"> </span>-c<span class="w"> </span>nvidia
</pre></div>
</div>
<p><strong>PaddlePaddle</strong> 安装：<a class="reference external" href="https://www.paddlepaddle.org.cn">https://www.paddlepaddle.org.cn</a></p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>install<span class="w"> </span>paddlepaddle-gpu<span class="o">==</span><span class="m">2</span>.4.2<span class="w"> </span><span class="nv">cudatoolkit</span><span class="o">=</span><span class="m">11</span>.7<span class="w"> </span>-c<span class="w"> </span>Paddle<span class="w"> </span>-c<span class="w"> </span>conda-forge
</pre></div>
</div>
</section>
</section>
<section id="cuda">
<h2>CUDA 验证<a class="headerlink" href="#cuda" title="此标题的永久链接">#</a></h2>
<p>在 <strong>Anaconda Powershell Prompt</strong> 中输入：</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>ipython<span class="w"> </span><span class="c1"># 交互 Python 运行环境</span>
</pre></div>
</div>
<p>使用 <code class="docutils literal notranslate"><span class="pre">exit</span></code> 或 <code class="docutils literal notranslate"><span class="pre">exit()</span></code> 来退出 <strong>IPython</strong></p>
<p>PaddlePaddle:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">paddle</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">paddle</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">run_check</span><span class="p">()</span>
</pre></div>
</div>
<p>正确输出：</p>
<div class="highlight-plain notranslate"><div class="highlight"><pre><span></span>PaddlePaddle works well on 1 GPU.
PaddlePaddle is installed successfully! Let&#39;s start deep learning with PaddlePaddle now.
</pre></div>
</div>
<p>Pytorch:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">torch</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">torch</span><span class="o">.</span><span class="n">cuda</span><span class="o">.</span><span class="n">is_available</span><span class="p">()</span>
</pre></div>
</div>
<p>正常输出：</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kc">True</span>
</pre></div>
</div>
</section>
<section id="id10">
<h2>云端环境的使用<a class="headerlink" href="#id10" title="此标题的永久链接">#</a></h2>
<ul class="simple">
<li><p>百度飞桨 AI Studio https://aistudio.baidu.com/aistudio/index</p></li>
<li><p>阿里天池 PAI DSW https://tianchi.aliyun.com/notebook-ai</p></li>
<li><p>Kaggle https://www.kaggle.com/code</p></li>
<li><p>Google Colab https://colab.research.google.com/</p></li>
<li><p>Sagemaker Studio Lab https://studiolab.sagemaker.aws/</p></li>
</ul>
</section>
</section>

        </article>
      </div>
      <footer>
        
        <div class="related-pages">
          <a class="next-page" href="chapter_1-Getting_Started.html">
              <div class="page-info">
                <div class="context">
                  <span>Next</span>
                </div>
                <div class="title">Chapter 1 启航 Getting Started</div>
              </div>
              <svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
            </a>
          <a class="prev-page" href="index.html">
              <svg class="furo-related-icon"><use href="#svg-arrow-right"></use></svg>
              <div class="page-info">
                <div class="context">
                  <span>Previous</span>
                </div>
                
                <div class="title">Home</div>
                
              </div>
            </a>
        </div>
        <div class="bottom-of-page">
          <div class="left-details">
            <div class="copyright">
                Copyright &#169; 2022 - 2023 Datawhale P2S Team
            </div>
            Made with <a href="https://www.sphinx-doc.org/">Sphinx</a> and <a class="muted-link" href="https://pradyunsg.me">@pradyunsg</a>'s
            
            <a href="https://github.com/pradyunsg/furo">Furo</a>
            
          </div>
          <div class="right-details">
            
          </div>
        </div>
        
      </footer>
    </div>
    <aside class="toc-drawer">
      
      
      <div class="toc-sticky toc-scroll">
        <div class="toc-title-container">
          <span class="toc-title">
            On this page
          </span>
        </div>
        <div class="toc-tree-container">
          <div class="toc-tree">
            <ul>
<li><a class="reference internal" href="#">Chapter 0 安装 Installation</a><ul>
<li><a class="reference internal" href="#id1">安装清单</a></li>
<li><a class="reference internal" href="#miniconda">Miniconda 安装配置</a><ul>
<li><a class="reference internal" href="#id2">下载 Miniconda</a></li>
<li><a class="reference internal" href="#windows">Windows 下安装配置推荐</a></li>
</ul>
</li>
<li><a class="reference internal" href="#powershell">修改 Powershell 执行策略（可选）</a></li>
<li><a class="reference internal" href="#id3">更换镜像源</a><ul>
<li><a class="reference internal" href="#id4">校园网联合镜像站</a></li>
<li><a class="reference internal" href="#id5">阿里巴巴开源镜像站</a></li>
<li><a class="reference internal" href="#conda">Conda 更换镜像源</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pypi">PyPI 更换镜像源</a></li>
<li><a class="reference internal" href="#id6">课程环境搭建</a><ul>
<li><a class="reference internal" href="#id7">创建与激活 Conda 环境</a></li>
</ul>
</li>
<li><a class="reference internal" href="#pip">Pip 安装与展示</a><ul>
<li><a class="reference internal" href="#id8">安装清单</a></li>
<li><a class="reference internal" href="#id9">Conda 安装与展示</a></li>
</ul>
</li>
<li><a class="reference internal" href="#cuda">CUDA 验证</a></li>
<li><a class="reference internal" href="#id10">云端环境的使用</a></li>
</ul>
</li>
</ul>

          </div>
        </div>
      </div>
      
      
    </aside>
  </div>
</div><script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
    <script src="_static/jquery.js"></script>
    <script src="_static/underscore.js"></script>
    <script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
    <script src="_static/doctools.js"></script>
    <script src="_static/sphinx_highlight.js"></script>
    <script src="_static/scripts/furo.js"></script>
    <script src="_static/clipboard.min.js"></script>
    <script src="_static/copybutton.js"></script>
    <script>let toggleHintShow = 'Click to show';</script>
    <script>let toggleHintHide = 'Click to hide';</script>
    <script>let toggleOpenOnPrint = 'true';</script>
    <script src="_static/togglebutton.js"></script>
    <script src="_static/translations.js"></script>
    <script src="_static/design-tabs.js"></script>
    <script>var togglebuttonSelector = '.toggle, .admonition.dropdown';</script>
    </body>
</html>